package com.igeek.config;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * TODO
 *
 * @author Guzhenghui
 * @since 2024/5/20
 */
public class MainTest {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext(MyConfig.class);
       Student student=context.getBean("student",Student.class);
       student.setNum("123");
        student.setName("小美");
        System.out.println("num:"+student.getNum()+" "+"name:"+student.getName());
        System.out.println(student);
    }
}
